﻿using Aliyun.OSS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TemplateTool.OSS
{
    public interface IOSS
    {
        ObjectListing ListObjects(string prefix);

        /// <summary>
        /// 删除单个文件
        /// </summary>
        /// <param name="objectName"></param>
        /// <returns></returns>
        DeleteObjectResult DeleteObject(string objectName);

        /// <summary>
        /// 批量删除文件
        /// </summary>
        /// <param name="keys"></param>
        /// <param name="quiet">true 设置为详细模式，返回所有删除的文件列表</param>
        /// <returns></returns>
        DeleteObjectsResult DeleteObjects(List<string> keys, bool quiet = false);
    }
}
